package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.FamilyMember;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.vo.FamilyListVo;
import com.zzyl.nursing.vo.FamilyMemberListVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 老人家属Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
@Mapper
public interface FamilyMemberMapper extends BaseMapper<FamilyMember>
{
    /*
     * 绑定家人
     * */
    void add(FamilyMemberElder familyMemberElder);
    /*
    * 查询家人列表
    * */
    List<FamilyListVo> listFamilyMembers(Long familyMemberId);
    /*
    * 分页查询家人列表 (先根据家人Id查找中间表中的老人id）
    * */
    List<FamilyMemberListVo> findByPage(Long id);
}
